<?php
/**
 * Created by PhpStorm
 * User: 龍zero
 * Date: 2022-04-13
 * Time: 9:28
 */

namespace App\Lib\Tools;


use Hyperf\Utils\Context;
use Hyperf\Utils\Traits\StaticInstance;

class LocalUser
{
    public static function getLocalUser(){
        return Context::get('local_user');
    }

    public static function setLocalUser($user){
        Context::set('local_user',$user);
    }
}